<%--
  Created by IntelliJ IDEA.
  User: User
  Date: 2024/5/15
  Time: 14:43
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
    <head>
        <title>Title</title>
    </head>
    <body>
        <h1>用户注册</h1>
        <a href="<%=request.getContextPath()%>/session/login.jsp">返回登录</a>
        <hr>
        <form action="<%=request.getContextPath()%>/register.code">
            用户名: <input type="text" name="username">
            <br>
            密&nbsp;&nbsp;码: <input type="password" name="password">
            <br>

            <br>
            <input type="submit" value="注册">
            <span style="color:red;">
                <%
                    String registerMsg= (String) request.getAttribute("registerMsg");
                    if(registerMsg!=null){
                        out.print(registerMsg);
                    }
                %>
            </span>
        </form>
    </body>
</html>
